package com.springboot.security.entity;

import com.springboot.security.po.Authentication;
import com.springboot.security.po.User;
import lombok.*;

/**
 * 会员实体类
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Member extends User {

    private String id;

    private String name;

    private String nickname;

    @Override
    public void logout(Authentication authentication) {
        authentication.logout(this);
    }
}
